//===================================================================================
// $$
//
// Coder: Code Milker v1.0
// 0 - EntityName
// 1 - Properties
//===================================================================================

namespace App.Domain.Handlers {
    using App.Data;
    using App.Domain.Contracts;
    using App.Domain.Models;

    public class UpdateEducation {
        private readonly IEducationRepository _educationRepository;

        public UpdateEducation(IEducationRepository educationRepository) {
            _educationRepository = educationRepository;
        }

        public void Execute(ICreateEducationCommand educationForm) {
            var education = educationForm.ConvertToEntity();

            _educationRepository.Update(education);
        }
    }
}
